-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: use gateway from go-libipfs #9588
Conversation
@lidel I think I have achieved a very good result here. Everything gateway related is completely extracted into the We may, or not, merge this PR into Kubo's basecode. Once IPNS is merged to CI: the CI is a bit flaky for unknown reasons to me. In addition the CodeQL CI thingy is flagging things that were already here, but since they were moved, it now thinks they are new issues. |
1929ff3
to
25f77d2
Compare
fd22889
to
7bdf667
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
6e3b941
to
ad102c1
Compare
ad102c1
to
87ef3e5
Compare
@lidel I opened a PR in Also updated here to use go-libipfs instead. |
e58bc2e
to
78063a8
Compare
@lidel interop is failing bc Cloudflare npm 524. |
💭 Let's park merging this until #9579 ships, so it is easier to compare branches. I'll review a bit later. |
aec46f1
to
0b1f1ac
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed and merged ipfs/boxo#65, this one looks good too.
We should merge this asap so we don't get PRs against old gateway code in this repo.
Ok to open a separate one for GO interface adjustments described in ipfs/boxo#61
@hacdias feel free to switch this PR to the revision from main
branch there and merge 🙏
0fc432e
to
05a73de
Compare
This PR is tracking my efforts to isolate the Gateway into a sub-package which will be key to solve #8524. The plan is to first isolate the gateway inside a sub-package that does not depend on anything else from Kubo. After, we can extract it to
go-lipipfs
.Progress:
kubo/tracing
package - might be harder, we may want to instead extract this as a module too.tracing.Span
intospanTrace
inside the gateway subpackage. I think this should be fine as we will still be able to continue to use the tracing functionalities.kubo/assets
packagebuild.sh
file. In addition, I updated the testing script to help visualize both the DAG and the Directory indexes, as well as improved the README.TODO:
cc @lidel for visibility